package linkwechat.pojo;

public enum ReturnEnum {
    QUERY_SUCCEED(200,"查询成功"),  //查询成功
    APPEND_SUCCEED(200,"新增成功"),
    MODIFY_SUCCEED(200,"修改成功"),
    REMOVE_SUCCEED(200,"删除成功"),
    ERROR(500,"请求失败"),
    AUTH_SUCCESS(200,"认证成功"),  //登录认证成功
    AUTH_ERROR(406,"账号或密码错误"),
    AUTH_LOCKED(423,"用户已禁用"), // 423 被锁定
    LOGOUT_SUCCESS(200,"已退出登录"),
    ERROR_REGISTERED(406,"该手机号已注册");

    private Integer code;
    private String msg;

    ReturnEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
